<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <th:block th:include="include :: header('人员不良行为')" />
    <link href="../static/css/workboard.css" th:href="@{/css/workboard.css}" rel="stylesheet" />
</head>

<body>
    <div class="container-div">
        <div class="tabsbody">
            <!-- 基本信息 -->
            <div class="tabsbody-item active">
                <form action="">
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 80%;margin:0 auto">
                        <tbody>
                            <tr>
                                <td>
                                    <div class="page-title">
                                        <span>人员不良行为记录</span>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <table cellpadding="0" cellspacing="0" class="tbEidt"
                                        style="table-layout: fixed;background-color: #ffffff; width: 100%;">
                                        <tbody>
                                            <tr style="height: 32px">
                                                <td class="tdTitle">不良行为代码</td>
                                                <td class="tdContent" th:text="${igmppi}==null or ${igmppi.behaviorCode}==null ? ' ':${igmppi.behaviorCode}"></td>
                                                <td class="tdTitle" style="height: 32px">不良行为类别</td>
                                                <td class="tdContent" th:text="${igmppi}==null or ${igmppi.behaviorCategory}==null ? ' ':${igmppi.behaviorCategory}"></td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle">不良行为描述</td>
                                                <td class="tdContent" colspan="3" th:text="${igmppi}==null or ${igmppi.behaviorDescription}==null ? ' ':${igmppi.behaviorDescription}">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle">扣分分值</td>
                                                <td class="tdContent" colspan="3">
                                                    <span
                                                        id="lbPunishScore"
                                                        style="color:Red;" th:text="${igmppi}==null or ${igmppi.penaltyScores}==null ? ' ':${igmppi.penaltyScores}"></span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle" style="height: 32px">姓名</td>
                                                <td class="tdContent" style="width: 32%" th:text="${igmppi}==null or ${igmppi.personName}==null ? ' ':${igmppi.personName}"></td>
                                                <td class="tdTitle" style="height: 32px">证件类型</td>
                                                <td class="tdContent" style="width: 32%" th:text="${igmppi}==null or ${igmppi.certType}==null ? ' ':${igmppi.certType}"></td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle" style="height: 32px">证件号码</td>
                                                <td class="tdContent" colspan="3" th:text="${igmppi}==null or ${igmppi.certNumber}==null ? ' ':${igmppi.certNumber}"></td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle" style="height: 32px">所在企业</td>
                                                <td class="tdContent" style="width: 32%" th:text="${igmppi}==null or ${igmppi.companyName}==null ? ' ':${igmppi.companyName}"></td>
                                                <td class="tdTitle" style="height: 32px">企业组织机构代码/&nbsp;<br>
                                                    统一社会信用代码
                                                </td>
                                                <td class="tdContent" style="width: 32%" th:text="${igmppi}==null or ${igmppi.organCode}==null ? ' ':${igmppi.organCode}"></td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle" style="width: 18%">工程名称</td>
                                                <td class="tdContent" style="width: 82%" colspan="3" th:text="${igmppi}==null or ${igmppi.projectName}==null ? ' ':${igmppi.projectName}"></td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle">发生地所在市县</td>
                                                <td class="tdContent" th:text="${igmppi}==null or ${igmppi.publishArea}==null ? ' ':${igmppi.publishArea}"></td>
                                                <td class="tdTitle">所属区</td>
                                                <td class="tdContent" th:text="${igmppi}==null or ${igmppi.area}==null ? ' ':${igmppi.area}"></td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle">处罚(处理)机构级别</td>
                                                <td class="tdContent" th:text="${igmppi}==null or ${igmppi.inLevel}==null ? ' ':${igmppi.inLevel}"></td>
                                                <td class="tdTitle" style="height: 32px">处罚(处理)机构</td>
                                                <td class="tdContent" th:text="${igmppi}==null or ${igmppi.punishmentDept}==null ? ' ':${igmppi.punishmentDept}"></td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle" style="height: 32px">处罚(处理)决定文号</td>
                                                <td class="tdContent" th:text="${igmppi}==null or ${igmppi.punishmentDecideCode}==null ? ' ':${igmppi.punishmentDecideCode}"></td>
                                                <td class="tdTitle" style="height: 32px">处罚(处理)日期</td>
                                                <td class="tdContent tdTime" th:text="${igmppi}==null or ${igmppi.punishmentDate}==null ? ' ':${igmppi.punishmentDate}"></td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle" style="height: 32px">处罚(处理)决定内容</td>
                                                <td class="tdContent" colspan="3" th:text="${igmppi}==null or ${igmppi.punishmentDecideContent}==null ? ' ':${igmppi.punishmentDecideContent}">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle" style="height: 32px">公布开始日期</td>
                                                <td class="tdContent tdTime" th:text="${igmppi}==null or ${igmppi.publishStartDate}==null ? ' ':${igmppi.publishStartDate}"></td>
                                                <td class="tdTitle">公布截至日期</td>
                                                <td class="tdContent tdTime" th:text="${igmppi}==null or ${igmppi.publishEndDate}==null ? ' ':${igmppi.publishEndDate}"></td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle" style="height: 32px">登记人</td>
                                                <td class="tdContent" th:text="${igmppi}==null or ${igmppi.registerName}==null ? ' ':${igmppi.registerName}"></td>
                                                <td class="tdTitle" style="height: 32px">登记部门</td>
                                                <td class="tdContent" th:text="${igmppi}==null or ${igmppi.registerDept}==null ? ' ':${igmppi.registerDept}"></td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle" style="height: 32px">不良行为分类</td>
                                                <td class="tdContent" th:text="${igmppi}==null or ${igmppi.behaviorCategory}==null ? ' ':${igmppi.behaviorCategory}"></td>
                                                <td class="tdTitle" style="height: 32px">登记日期</td>
                                                <td class="tdContent tdTime" th:text="${igmppi}==null or ${igmppi.registerDate}==null ? ' ':${igmppi.registerDate}"></td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle" align="center" style="height: 32px">相关材料</td>
                                                <td class="tdContent" colspan="3" align="left">
                                                    <a id="ucshowimg1_BtnShow" th:if="${igmppi==null || igmppi.materials=='' || igmppi.materials==null || (igmppi.fileSort!='0' && igmppi.fileSort!='1')}"
                                                        target="_blank" style="color:Gray;">未上传附件</a>
                                                    <a th:if="${igmppi.fileSort == '1'}" title="点击下载" class="btn btn-success btn-xs" th:onclick="openUrl([[${igmppi.materials}]],[[${igmppi.fileName}]])"><i class="fa fa-edit"></i>下载</a>
                                                    <a th:if="${igmppi.fileSort == '0'}" title="点击下载" class="btn btn-success btn-xs" rel="noopener noreferrer" th:href="${igmppi.materials}" target="_blank"><i class="fa fa-edit"></i>下载</a>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle" style="height: 32px;">来源类型</td>
                                                <td class="tdContent" colspan="3" align="left" th:text="${igmppi}==null or ${igmppi.inSource}==null ? ' ':${igmppi.inSource}"></td>
                                            </tr>
                                            <tr>
                                                <td colspan="4"></td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>

    </div>
    <th:block th:include="include :: footer" />
    <script th:src="@{/js/plugins/datetime/moment.js}"></script>
    <script th:inline="javascript">
    /* 下载  */
	function openUrl(filePath, FileNameOld){
		window.location.href = ctx + 'integrityInformationAdd/peopleBehavior/download?resource='+filePath+'&fileName='+ encodeURI(FileNameOld);
	}
    /* 日期格式化  */
    var tdStr = $('.tdTime');
	for(var i =0;i<tdStr.length;i++){
		if($.common.isNotEmpty(tdStr[i].innerText)){
			var strDate = tdStr[i].innerText;
			tdStr[i].innerText =  moment(strDate,'YYYY-MM-DD').format('YYYY-MM-DD');	
		}
		
	};
    </script>
</body>

</html>